import Axios from 'axios';
const serverBase = 'http://littlebear.free.idcfengye.com';
export default {
    getWechatJssdk(hostUrl) {
        let url = `${serverBase}/test`;
        return Axios.post(url,{url:hostUrl});
    },
    getWechatUserInfo(hostUrl) {
        hostUrl = encodeURIComponent(hostUrl);
        const url = `${serverBase}/wechat-oauth?url=${hostUrl}`;
        return Axios.get(url);
    }
}   